<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站配置</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<style type="text/css">
body{ margin:20px;}
</style>
<script type="text/javascript">
$(document).ready(function(){
	$('.q').find('ul li').click(function(){
		$index=$('.q').find('ul li').index(this);
		$('#tb').find('div').eq($index).show().siblings().hide();
	});
});
</script>
</head>

<body>
<div class="div_out">
 <div class="position"><h2>当前位置 > 网站配置</h2></div>
 <div class="lang"><span>当前的语言:</span>
 <?php
 $cache_file=DATA_PATH."cache/lang_cache.php";
 $cache_arr=read_cache($cache_file,'lang_cache');
 if(!empty($cache_arr)){
 foreach($cache_arr as $k=>$v){
  if(!$v['lang_is_use']){continue;}
 ?>
 <a href="?lang=<?php echo $v['lang_tag'];?>" class="<?php if($GLOBALS['lang']==$v['lang_tag']){echo 'hover';}?>"><?php echo $v['lang_name'];?></a>
 <?php
 }
 }
 ?>
 </div>
</div><!--导航-->
<form name="maininfo" method="post" enctype="multipart/form-data" class="form">
<div class="div_out" id="tb">
<div id="sys1">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3 r">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1" style="text-align:center">网站名称:</td><td class="w2"><input type="text" name="web_name" style="width:80%" value="<?php echo isset($_confing['web_name'])?$_confing['web_name']:'';?>"/></td><td class="w3">$web_name</td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center"><span title="一般不用修改" class="help">网站网址:</span></td><td class="w2"><input type="text" name="web_url" style="width:80%" value="<?php echo $web_url=isset($_confing['web_url'])&&!empty($_confing['web_url'])?$_confing['web_url']:CMS_URL;?>"/></td><td class="w3">$web_url</td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center"><span title="一般不用修改" class="help">网站路径:</span></td><td class="w2"><input type="text" name="web_path" style="width:80%" value="<?php echo $web_path=isset($_confing['web_path'])&&!empty($_confing['web_path'])?$_confing['web_path']:CMS_SELF;?>"/></td><td class="w3">$web_path</td>
		</tr>
		<!--<tr>
		  <td class="w1" style="text-align:center">是否生成html:</td><td class="w2"><input type="radio" onclick="alert('开启html将不能生成模板配置\n建议先动态访问页面做好配置后再生成');" value="1" name="web_html[]" style="margin:0 5px; border:0" <?php $web_html=isset($_confing['web_html'])?$_confing['web_html']:0; if ($web_html==1){?>checked="checked"<?php }?>/>是<input style="margin:0 5px; border:0" type="radio" value="0" name="web_html[]" <?php if ($web_html==0){?>checked="checked"<?php }?>/>否</td><td class="w3">$web_html</td>
		</tr>-->
		<!--<tr>
		  <td class="w1" style="text-align:center">开启缓存:</td><td class="w2"><input type="radio" name="is_cache[]" style="margin:0 5px; border:0" <?php if($_confing['is_cache'][0]){?>checked="checked"<?php }?> value="1"/>是<input type="radio" name="is_cache[]" <?php if(!$_confing['is_cache'][0]){?>checked="checked"<?php }?> value="0" style="margin:0 5px; border:0" />否</td><td class="w3">只能动态页面使用,建议开启</td>
		</tr>-->
		<!--<tr>
		  <td class="w1" style="text-align:center">默认缓存时间:</td><td class="w2"><input type="text" name="cache_time" style="width:100px" value="<?php if($_confing['cache_time']){echo $_confing['cache_time'];}else{echo '30';}?>" />秒</td><td class="w3">只能动态页面使用,开启缓存使用</td>
		</tr>-->
		<tr>
		  <td class="w1" style="text-align:center"><span title="更换模板会清空现有模板配置" class="help">模板默认风格:</span></td><td class="w2">template/<input type="text" name="web_template" style="width:50%" value="<?php echo isset($_confing['web_template'])&&!empty($_confing['web_template'])?$_confing['web_template']:'default';?>"/></td><td class="w3">$web_template</td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center"><span title="支持html代码" class="help">网站版权信息:</span></td><td class="w2"><textarea name="web_powerby" style="width:95%; height:50px;"><?php echo isset($_confing['web_powerby'])?$_confing['web_powerby']:'';?></textarea></td><td class="w3">$web_powerby</td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">默认关键字(SEO):</td><td class="w2"><input type="text" name="web_keywords" style="width:80%" value="<?php echo isset($_confing['web_keywords'])?$_confing['web_keywords']:'';?>"/></td><td class="w3">$web_keywords</td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">站点描述(SEO):</td><td class="w2"><textarea name="web_description" style="width:95%; height:50px;"><?php echo isset($_confing['web_description'])?$_confing['web_description']:'';?></textarea></td><td class="w3">$web_description</td>
		</tr>
		<!--<tr>
		  <td class="w1" style="text-align:center"><span title="支持html代码" class="help">网站备案号:</span></td><td class="w2"><input type="text" name="web_beian" style="width:80%" value="<?php echo isset($_confing['web_beian'])?$_confing['web_beian']:'';?>"/></td><td class="w3">$web_beian</td>
		</tr>-->
		<!--<tr>
		  <td class="w1" style="text-align:center"><span title="支持html代码" class="help">营销客服代码(如53KF代码):</span></td><td class="w2"><textarea name="web_yinxiao" style="width:95%; height:50px;"><?php echo isset($_confing['web_yinxiao'])?$_confing['web_yinxiao']:'';?></textarea></td><td class="w3">$web_yinxiao</td>
		</tr>-->
		<!--<tr>
		  <td class="w1">热门搜索(用|分开):</td><td class="w2"><input type="text" style="width:95%;" value="<?php echo $_confing['hot_key'];?>" name="hot_key" /></td><td class="w3"></td>
		</tr>-->
	</tbody>
 </table>
 </div>
 
</div>
<div class="btn" style="margin-top:10px">
<input type="hidden" name="action" value="add_inc"/><input type="hidden" name="lang" value="<?php echo $lang;?>"/>
  <input type="submit" value="确定" name="submit" class="go"/><input type="reset" style="margin:0 10px;" class="go" value="重置" name="reset"/>
 </div>
</form>
</body>
</html>
